﻿/*******************************
 * 
 * 数据访问层
 * 字典数据
 * 
 * 全部的字典信息
 * Author：JXL
 * 
 * 
 ***************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using IDAL;

namespace DAL
{
   public class DictionaryDAL:BaseDAL,IDictionary
    {
        protected override string tablename
        {
            get { return "Dictionary"; }
        }

        protected override Dictionary<string, bool> pkname
        {
            get { Dictionary<string, bool> id = new Dictionary<string, bool>();

            id.Add("dictionary_Id", true);
            return id;
            }
        }
       /// <summary>
       /// 获取到字典的全部信息
       /// </summary>
       /// <returns></returns>
       public List<Dictionary> getDictionary()
        {
           string str="select * from Dictionary";
           return DBhelper.DBHelper.GetList<Dictionary>(str);
        }
    }
}
